package com.bizzard.user.mapper;

import com.bizzard.user.domain.User;
import com.bizzard.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Bao
 * @since 2022-06-01
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 判断手机是否注册过
     * @return
     */
    User loadByPhone(String phone);

    /**
     * 判断邮箱是否注册过
     * @param email
     * @return
     */
    User loadByEmail(String email);

    /**
     *  寻主功能获取登录id
     * @param id
     * @return
     */
    User loadByLogininfoId(Long id);
}
